package com.ds.vo;

/**
 * @author wzy
 * @version 1.0
 * @date 2022/5/23 21:09
 */

public class AjaxResult {
    private int status = 200;//200：成功；-999：失败；403：无权访问；911:未登录
    private String msg = "操作成功";//返回信息
    private Object data = "";//返回结果数据

    public AjaxResult(int status,String msg, Object data){
        this.status = status;
        this.msg = msg;
        this.data = data;
    }

    public AjaxResult(String msg,Object data){
        this.msg = msg;
        this.data = data;
    }

    public AjaxResult(Object data){
        this.data = data;
    }

    public AjaxResult(){

    }

    public int getRetcode() {
        return status;
    }

    public void setRetcode(int status) {
        this.status = status;
    }

    public String getRetmsg() {
        return msg;
    }

    public void setRetmsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

}
